#ifndef _MY_OBJECT_H_
#define _MY_OBJECT_H_
#include "cocos2d.h"
#include "BlockAllocator.h"

using namespace cocos2d;

namespace fireplane
{
	class Object : public CCNode
	{
	public:
		Object();
		~Object();

		virtual bool updateState(float dt);
		virtual void destroy();

		void setDestroyFlag(bool flag);
		bool isDestroy(){
			return _is_destroy;
		}

	private:
		bool _is_destroy;
	};
}

#endif